
import java.util.Arrays;

public class LC5855Week {
    public String kthLargestNumber(String[] nums, int k) {
        int n=nums.length;
        long[] num=new long[n];
        for (int i = 0; i < n; i++) {
            num[i]=Long.parseLong(nums[i].toString().trim());
        }
        Arrays.sort(num);
        Long ans=num[n-k];
        return ans.toString();
    }

    public static void main(String[] args) {
        String[] str=new String[4];
        str[0]="6888794705";
        str[1]="6";
        str[2]="7";
        str[3]="10";
        System.out.println(new LC5855Week().kthLargestNumber(str,4));
    }
}
